<?php
// 我的资金
namespace app\home\controller;
use think\Db;
class Member extends HomeBase {

	public function getinfo() {

		$uid = input('uid','0','intval');		// 用户id

		if (!$uid) return json(array('status'=>0,'msg'=>'参数丢失'));
		$info = Db::name('member')->where('id',$uid)->find();
		if (!$info) return json(array('status'=>0,'msg'=>'用户信息丢失'));


		return json(array('status'=>1,'info'=>$info));
	}
}